package com.mlog.njyjy.ndop.share.sql.support;

/**
 * <p>
 * .
 * </p>
 *
 * @author <a href="mailto:yingxiufeng@mlogcn.com">alex</a>
 * @version v1.0, 2020/7/9
 */
public class SqlSort {

    /**
     * 排序字段 支持 pojo类的字段名 或 model 的attr 名
     */
    private String field;

    private Order order = Order.ASC;

    public String getField() {
        return field;
    }

    public SqlSort setField(String field) {
        this.field = field;
        return this;
    }

    public Order getOrder() {
        return order;
    }

    public SqlSort setOrder(Order order) {
        this.order = order;
        return this;
    }

    public enum Order {
        /**
         *
         */
        ASC,
        DESC
    }

}
